--- import type { GetStaticPaths } from "astro"; import { getCollection } from "astro:content"; import PortfolioSingleLayout from "@/layouts/PortfolioSingleLayout.astro"; export const getStaticPaths: GetStaticPaths = async () => { const entries = await getCollection("portfolio"); return entries.map((entry: any) => ({ params: { id: entry.id }, props: { entry }, })); }; const { entry } = Astro.props; ---